﻿using System;
using System.Collections.Generic;

namespace NExt.form
{
    public class DateField : DateField<DateFieldEvents>
    {
    }

    public abstract class DateField<TEvents>: TriggerField<TEvents>
        where TEvents : DateFieldEvents, new()
    {
        public DateField()
        {
            disabledDates = new List<string>();
            disabledDays = new List<int>();
        }

        public string altFormats { get; set; }
        public IList<string> disabledDates { get; set; }
        public string disabledDatesText { get; set; }
        public IList<int> disabledDays { get; set; }
        public string disabledDaysText { get; set; }
        public string format { get; set; }
        public string maxText { get; set; }
        public DateTime? maxValue { get; set; }
        public string minText { get; set; }
        public DateTime? minValue { get; set; }
    }

    public class DateFieldEvents: TriggerFieldEvents
    {
    }
}
